package com.aabte.design2.structural.bridge;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
public class Tv implements Device {
    private boolean enable;
    private int volume;
    private int channel;

    @Override
    public boolean isEnable() {
        return enable;
    }

    @Override
    public void disable() {
        this.enable = false;
    }

    @Override
    public void enable() {
        this.enable = true;
    }

    @Override
    public int getVolume() {
        return volume;
    }

    @Override
    public void setVolume(int percent) {
        this.volume = percent;
    }

    @Override
    public int getChannel() {
        return channel;
    }

    @Override
    public void setChannel(int channel) {
        this.channel = channel;
    }
}
